import { unref } from 'vue'
export function useDataSource(propsRef, { clearSelectedRowKeys }) {
  function handleTableChange() {
    const { clearSelectOnPageChange } = unref(propsRef)
    if (clearSelectOnPageChange) {
      clearSelectedRowKeys()
    }
  }
  return {
    handleTableChange
  }
}
